package top.huntwolf.admin.dao;


import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import top.huntwolf.admin.pojo.SearchHistory;

import java.util.List;

@Mapper
@Repository
public interface HistoryDao {

    /*新增搜索历史*/
    int insert(SearchHistory searchHistory);

    /*获取搜索历史*/
    List<SearchHistory> selectHistory(String openId);

    /*查询重复的搜索历史*/
    SearchHistory CheckDuplicateContent(String openId,String content);

    /*更新重复的搜索历史*/
    int update(String id);

    /*清空搜索历史*/
    int delete(String openId);

}
